from django.conf.urls import url
from rest_framework.routers import DefaultRouter
from lhc_questions import views

urlpatterns = [
    url('^labels/full/$', views.Label_Full.as_view()),
    url('^labels/$', views.Articles_serch.as_view()),
    url('^labels/users/$', views.LabelsFollowView.as_view()),
    url('^questions/$', views.Questions.as_view()),
    url('^questions/(?P<pk>.+)/label/new/$', views.QuestionsNew.as_view()),
    url('^questions/(?P<pk>.+)/label/hot/$', views.QuestionsHot.as_view()),
    url('^questions/(?P<pk>.+)/label/wait/$', views.QusetionsWait.as_view()),
    url('^questions/(?P<pk>.+)/useful/$', views.QuestionUseful.as_view()),
    url('^questions/(?P<pk>\d+)/unuseful/$', views.QuestionUnuseful.as_view()),
    url('^questions/(?P<pk>.+)/$', views.QuestionsDetils.as_view()),
    url('^reply/$', views.ReplyQusetionView.as_view()),
    url('^reply/(?P<pk>\d+)/useful/$', views.QuestionAnswerUseful.as_view()),
    url('^reply/(?P<pk>\d+)/unuseful/$', views.QuestionAnswerUnuseful.as_view()),
    url('^labels/(?P<pk>\d+)/focusin/$', views.UserFocusinLabel.as_view()),
    url('^labels/(?P<pk>\d+)/focusout/$', views.UserFocusoutLabel.as_view()),
    url('^labels/(?P<pk>\d+)/$', views.LabelsDetail.as_view()),
]

